import { createSSRApp } from "vue";
import App from "./App.vue";
import Utils from '@/utils'
import '@/theme/css/style.scss';
import UiHover from '@/components/ui/hover/index.vue'
import UiEmpty from '@/components/ui/empty/index.vue'
import UiInitLoad from "@/components/ui/init-load/index.vue";
import UiTabs from "@/components/ui/tabs/index.vue";
import UiCountdown from "@/components/ui/countdown/index.vue";
import UiRate from "@/components/ui/rate/index.vue";
import UiMoney from "@/components/ui/money/index.vue";

import { getStorage } from "@/utils/tools"

export function createApp() {
    const app = createSSRApp(App);

    app.config.globalProperties.$utils = Utils;
    app.component('hover', UiHover);
    app.component('empty', UiEmpty);
    app.component('init-load', UiInitLoad);
    app.component('tabs', UiTabs);
    app.component('countdown', UiCountdown);
    app.component('rate', UiRate);
    app.component('money', UiMoney);
    
    return {
        app,
    };
}
